package com.lx.pc.mybatis.repository.transactionlog;

import java.math.BigInteger;
import java.util.List;

import org.springframework.data.mybatis.repository.annotation.Query;
import org.springframework.data.mybatis.repository.support.MybatisRepository;
import org.springframework.stereotype.Repository;

import com.lx.pc.domain.entity.transactionlog.TransactionLogEntity;

@Repository("transactionLogRepository")
public interface TransactionLogRepository extends MybatisRepository<TransactionLogEntity, BigInteger>{

	/**
	 * 查询总数
	 */
	@Query("findByTransactionLogCount")
	public int findByTransactionLogCount(TransactionLogEntity transaction);
	
	/**
	 * 查询方法
	 * @param page
	 * @param size
	 * @return
	 */
	@Query("findByTransactionLog")
	public List<TransactionLogEntity> findByTransactionLog(TransactionLogEntity transaction,Integer page,Integer size);
}
